package com.hunt.service.impl;


import com.hunt.dao.AppBannerUploadMapper;
import com.hunt.model.entity.BannerUpload;
import com.hunt.service.AppBannerUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AppBannerUploadServiceImpl implements AppBannerUploadService {

    @Autowired
    private AppBannerUploadMapper appBannerUploadMapper;

    @Override
    public List<BannerUpload> findBannersNewest(Integer size) {
        return appBannerUploadMapper.findBannersNewest(size);
    }
}
